From: Jasper St. Pierre Date: Thu, 4 Oct 2012 18:01:03 +0000 (-0300) Subject: overview: Make sure that we put the desktop clone at the right place X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5647 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4f56fb125ec6e4da5590b6b2e45872061a6dc35e;p=gnome-shell.git overview: Make sure that we put the desktop clone at the right place This ensures that the desktop window's smooth fadeout when going to the overview is in the same spot as the desktop window, which may not always be at 0, 0. https://bugzilla.gnome.org/show_bug.cgi?id=681159 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index ddf278097..729c33719 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -470,7 +470,9 @@ const Overview = new Lang.Class({ if (windows.length == 0) return null; - let clone = new Clutter.Clone({ source: windows[0].get_texture() }); + let window = windows[0]; + let clone = new Clutter.Clone({ source: window.get_texture(), + x: window.x, y: window.y }); clone.source.connect('destroy', Lang.bind(this, function() { clone.destroy(); }));